package com.survey.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.survey.util.FD;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

@Entity
@Table(name = "t_quesitemlistoptionanswer")
@NameStyle(Style.normal)
public class QuesItemListOptionAnswer {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private Integer				id;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "itemListId")
	@FD("问题")
	private QuesItemList	itemList;
	private Integer				itemListId;
	@FD("回答")
	private String				answer;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public QuesItemList getItemList() {
		return itemList;
	}

	public void setItemList(QuesItemList itemList) {
		this.itemList = itemList;
	}

	public Integer getItemListId() {
		return itemListId;
	}

	public void setItemListId(Integer itemListId) {
		this.itemListId = itemListId;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

}
